﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="BugTraceList.aspx.cs" Inherits="Ewts.Trace.BugTraceList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="/jquery/jquery.dataTables.css"type="text/css" />
<script type="text/javascript" src="/jquery/jquery.dataTables.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<div class="tab1">
	<h2>BUG列表</h2>
<br />
    <!--一个表单-->
    状态：
    <asp:DropDownList ID="dropBugStatus" runat="server" 
       AutoPostBack="true"  >
        <asp:ListItem Text="全部" Value=""></asp:ListItem>
        <asp:ListItem Text="待处理" Value="1"></asp:ListItem>
        <asp:ListItem Text="待确认" Value="2"></asp:ListItem>
        <asp:ListItem Text="已关闭" Value="3"></asp:ListItem>
    </asp:DropDownList>
<br />
<p>
    <a href="BugAdd.aspx">新增BUG</a>
</p>

<br />
<div class="shadow">
      
     
 
    <table id="tbColl" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
 
      <thead>
 
        <tr>
 
            <th>序号</th>
            <th>BUG编号</th>
            <th>标题</th>
            <th>BUG描述</th>
            <th>创建日期</th>
             <th>BUG状态</th>
             <th>优先级</th>
            <th>操作</th>
        </tr>
 
      </thead>
 
      <tbody>
 
   <asp:Repeater ID="rept" runat="server">
  <ItemTemplate>
 
    <tr>
    <td><%# Container.ItemIndex + 1 %></td>
      <td><%# Eval("bugno")%></td>
      <td title="<%# Eval("title")%>"><%# GetSubString(Eval("title").ToString(),10)%></td>
      <td title="<%# Eval("title")%>"><%# GetSubString(Eval("buginfo").ToString(),10)%></td>
      <td><%# Eval("createtime")%></td>
      <td ><%# Eval("updatetime")%></td>
      <td ><%# Eval("buglevel")%></td>
       <td>  <a href="buginfo.aspx?id=<%# Eval("id") %>">请情操作</a> </td>
 
    </tr>
 
  </ItemTemplate>
 
    </asp:Repeater>
  
 
    </tbody>
 
    </table>
 
 


</div>

    <script type="text/javascript">

        $(document).ready(function () {

            $('#tbColl').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 20,
                "bSort": true,
                "aaSorting": [[0, "desc"]]
            });

        });
 
</script>
  
</div>
</asp:Content>
